package com.dailyblue.java.standard.thread.method;

public class MethodF {

    public synchronized void b(MethodE e1) {
        String name = Thread.currentThread().getName();
        System.out.println(name + "执行了这个是MethodF的b方法！");
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(name + "准备MethodE的a方法");
        e1.a(this);
    }
}
